package com.spring.event.spring.handler;

import com.spring.event.spring.event.SuccessEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Service;

@Service
public class EventHandler2 implements ApplicationListener<SuccessEvent> {

    @Override
    public void onApplicationEvent(SuccessEvent successEvent) {
        System.out.println("EventHandler2 处理 successEvent 事件");
    }
}
